
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>规范化Git的提交信息 · 记录技术文档内容</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="zhengyuliang">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-sectionx/sectionx.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../tutorial/Esmap地图详解.html" />
    
    
    <link rel="prev" href="智能照明项目说明.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">CSS</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../CSS/18种CSS命名和书写规范.html">
            
                <a href="../CSS/18种CSS命名和书写规范.html">
            
                    
                    18种CSS命名和书写规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../CSS/灵活运用CSS开发技巧.html">
            
                <a href="../CSS/灵活运用CSS开发技巧.html">
            
                    
                    灵活运用CSS开发技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../CSS/自适应 flex grid.html">
            
                <a href="../CSS/自适应 flex grid.html">
            
                    
                    自适应 Flex Grid
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">HTML</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../HTML/浏览器里的本地数据库：IndexedDB.html">
            
                <a href="../HTML/浏览器里的本地数据库：IndexedDB.html">
            
                    
                    浏览器里的本地数据库：IndexedDB
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Vue</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../Vue/7个有用的Vue开发技巧.html">
            
                <a href="../Vue/7个有用的Vue开发技巧.html">
            
                    
                    7个有用的Vue开发技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../Vue/Vue this.$router.push、replace、go的区别.html">
            
                <a href="../Vue/Vue this.$router.push、replace、go的区别.html">
            
                    
                    Vue This.$Router.Push、Replace、Go的区别
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../Vue/Vue 的父组件和子组件生命周期钩子函数执行顺序？.html">
            
                <a href="../Vue/Vue 的父组件和子组件生命周期钩子函数执行顺序？.html">
            
                    
                    Vue 的父组件和子组件生命周期钩子函数执行顺序？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="../Vue/Vue.set和this.$set应用的场景.html">
            
                <a href="../Vue/Vue.set和this.$set应用的场景.html">
            
                    
                    Vue.Set和This.$Set应用的场景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="../Vue/vue高级技巧.html">
            
                <a href="../Vue/vue高级技巧.html">
            
                    
                    Vue高级技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="../Vue/从 0 开始手把手带你搭建一套规范的 Vue3.x 项目工程环境.html">
            
                <a href="../Vue/从 0 开始手把手带你搭建一套规范的 Vue3.x 项目工程环境.html">
            
                    
                    从 0 开始手把手带你搭建一套规范的 Vue3.X 项目工程环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7" data-path="../Vue/浅析 vue-router 源码和动态路由权限分配.html">
            
                <a href="../Vue/浅析 vue-router 源码和动态路由权限分配.html">
            
                    
                    浅析 Vue Router 源码和动态路由权限分配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8" data-path="../Vue/父组件监听到子组件的生命周期.html">
            
                <a href="../Vue/父组件监听到子组件的生命周期.html">
            
                    
                    父组件监听到子组件的生命周期
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.9" data-path="../Vue/理解Vue.mixin，利用Vue.mixin正确的偷懒.html">
            
                <a href="../Vue/理解Vue.mixin，利用Vue.mixin正确的偷懒.html">
            
                    
                    理解Vue.Mixin，利用Vue.Mixin正确的偷懒
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">JavaScript</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../javaScript/5个技巧让你更好的编写 JavaScript(ES6">
            
                <span>
            
                    
                    5个技巧让你更好的编写 JavaScript(ES6) 中条件语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../javaScript/5种常见函数的写法和调用方式.html">
            
                <a href="../javaScript/5种常见函数的写法和调用方式.html">
            
                    
                    5种常见函数的写法和调用方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../javaScript/7道javascript题，让你理解基本的javascript.html">
            
                <a href="../javaScript/7道javascript题，让你理解基本的javascript.html">
            
                    
                    7道Javascript题，让你理解基本的Javascript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../javaScript/Array.from(">
            
                <span>
            
                    
                    Array.From() 五个超好用的用途
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="../javaScript/ES6汇总资料.html">
            
                <a href="../javaScript/ES6汇总资料.html">
            
                    
                    ES6汇总资料
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6" data-path="../javaScript/JS开发必须知道的41个技巧.html">
            
                <a href="../javaScript/JS开发必须知道的41个技巧.html">
            
                    
                    JS开发必须知道的41个技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.7" data-path="../javaScript/JavaScript之防抖Debounce和节流Throttle.html">
            
                <a href="../javaScript/JavaScript之防抖Debounce和节流Throttle.html">
            
                    
                    JavaScript之防抖Debounce和节流Throttle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.8" data-path="../javaScript/JavaScript数组求并集，交集和差集.html">
            
                <a href="../javaScript/JavaScript数组求并集，交集和差集.html">
            
                    
                    JavaScript数组求并集，交集和差集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.9" data-path="../javaScript/JavaScript的优雅写法.html">
            
                <a href="../javaScript/JavaScript的优雅写法.html">
            
                    
                    JavaScript的优雅写法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.10" data-path="../javaScript/axios知识点.html">
            
                <a href="../javaScript/axios知识点.html">
            
                    
                    Axios知识点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.11" data-path="../javaScript/javascript核心知识.html">
            
                <a href="../javaScript/javascript核心知识.html">
            
                    
                    Javascript核心知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.12" data-path="../javaScript/this、apply、call、bind.html">
            
                <a href="../javaScript/this、apply、call、bind.html">
            
                    
                    This、Apply、Call、Bind
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.13" data-path="../javaScript/前端js常用的60余种工具方法.html">
            
                <a href="../javaScript/前端js常用的60余种工具方法.html">
            
                    
                    前端Js常用的60余种工具方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.14" data-path="../javaScript/前端异常的捕获与处理.html">
            
                <a href="../javaScript/前端异常的捕获与处理.html">
            
                    
                    前端异常的捕获与处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.15" data-path="../javaScript/在 JavaScript 中交换值的 10 种方法.html">
            
                <a href="../javaScript/在 JavaScript 中交换值的 10 种方法.html">
            
                    
                    在 JavaScript 中交换值的 10 种方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.16" data-path="../javaScript/常用的前端JavaScript方法封装.html">
            
                <a href="../javaScript/常用的前端JavaScript方法封装.html">
            
                    
                    常用的前端JavaScript方法封装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.17" data-path="../javaScript/异步神器Async-await介绍与填坑.html">
            
                <a href="../javaScript/异步神器Async-await介绍与填坑.html">
            
                    
                    异步神器Async Await介绍与填坑
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.18" data-path="../javaScript/灵活运用JS开发技巧.html">
            
                <a href="../javaScript/灵活运用JS开发技巧.html">
            
                    
                    灵活运用JS开发技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.19" data-path="../javaScript/编写高质量可维护的代码：一目了然的注释.html">
            
                <a href="../javaScript/编写高质量可维护的代码：一目了然的注释.html">
            
                    
                    编写高质量可维护的代码：一目了然的注释
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.20" data-path="../javaScript/编写高质量可维护的代码：优化逻辑判断.html">
            
                <a href="../javaScript/编写高质量可维护的代码：优化逻辑判断.html">
            
                    
                    编写高质量可维护的代码：优化逻辑判断
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.21" data-path="../javaScript/编写高质量可维护的代码：优雅命名.html">
            
                <a href="../javaScript/编写高质量可维护的代码：优雅命名.html">
            
                    
                    编写高质量可维护的代码：优雅命名
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.22" data-path="../javaScript/编写高质量可维护的代码：数据建模.html">
            
                <a href="../javaScript/编写高质量可维护的代码：数据建模.html">
            
                    
                    编写高质量可维护的代码：数据建模
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Life Exp</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../life_exp/告别平庸的15个小方法.html">
            
                <a href="../life_exp/告别平庸的15个小方法.html">
            
                    
                    告别平庸的15个小方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../life_exp/日志记录.html">
            
                <a href="../life_exp/日志记录.html">
            
                    
                    日志记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="../life_exp/程序员的发展方向.html">
            
                <a href="../life_exp/程序员的发展方向.html">
            
                    
                    程序员的发展方向
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="../message/">
            
                <a href="../message/">
            
                    
                    Message
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Technology</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="WebSocket.html">
            
                <a href="WebSocket.html">
            
                    
                    WebSocket
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="npm常用命令大全.html">
            
                <a href="npm常用命令大全.html">
            
                    
                    Npm常用命令大全
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="智能照明项目说明.html">
            
                <a href="智能照明项目说明.html">
            
                    
                    智能照明项目说明
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="6.4" data-path="规范化git的提交信息.html">
            
                <a href="规范化git的提交信息.html">
            
                    
                    规范化Git的提交信息
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Tutorial</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="../tutorial/Esmap地图详解.html">
            
                <a href="../tutorial/Esmap地图详解.html">
            
                    
                    Esmap地图详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="../tutorial/npm镜像切换.html">
            
                <a href="../tutorial/npm镜像切换.html">
            
                    
                    Npm镜像切换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="../tutorial/发布npm的教程.html">
            
                <a href="../tutorial/发布npm的教程.html">
            
                    
                    发布Npm的教程
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >规范化Git的提交信息</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <html><head></head><body><div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><ul><li><span class="title-icon "></span><a href="#&#x89C4;&#x8303;&#x5316;git-commit&#x4FE1;&#x606F;"><b>1.1. </b>&#x89C4;&#x8303;&#x5316;git commit&#x4FE1;&#x606F;</a></li><ul><li><span class="title-icon "></span><a href="#&#x7248;&#x672C;&#x53D1;&#x5E03;"><b>1.1.1. </b>&#x7248;&#x672C;&#x53D1;&#x5E03;</a></li><li><span class="title-icon "></span><a href="#standard-version&#x4E00;&#x4E9B;&#x57FA;&#x672C;&#x7528;&#x6CD5;"><b>1.1.2. </b>standard-version&#x4E00;&#x4E9B;&#x57FA;&#x672C;&#x7528;&#x6CD5;</a></li></ul></ul></ul></div><a href="#" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h2 id="&#x89C4;&#x8303;&#x5316;git-commit&#x4FE1;&#x606F;"><a name="&#x89C4;&#x8303;&#x5316;git-commit&#x4FE1;&#x606F;" class="anchor-navigation-ex-anchor" href="#&#x89C4;&#x8303;&#x5316;git-commit&#x4FE1;&#x606F;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. &#x89C4;&#x8303;&#x5316;git commit&#x4FE1;&#x606F;</h2>
<blockquote>
<p>&#x5728;git&#x7684;&#x4F7F;&#x7528;&#x4E2D;&#xFF0C;&#x4E00;&#x79CD;&#x6700;&#x4F73;&#x5B9E;&#x8DF5;&#x662F;&#x4F7F;&#x7528;&#x683C;&#x5F0F;&#x5316;&#x7684;commit&#x4FE1;&#x606F;&#xFF0C;&#x8FD9;&#x6837;&#x65B9;&#x4FBF;&#x81EA;&#x52A8;&#x5316;&#x5DE5;&#x5177;&#x8FDB;&#x884C;&#x5904;&#x7406;&#xFF0C;&#x53EF;&#x4EE5;&#x5FEB;&#x901F;&#x751F;&#x6210;Release Notes&#xFF0C;&#x751A;&#x81F3;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x5BF9;&#x63A5;CI&#x5DE5;&#x5177;&#x8FDB;&#x884C;&#x66F4;&#x8FDB;&#x4E00;&#x6B65;&#x7684;&#x89C4;&#x8303;&#x5316;&#x53D1;&#x5E03;&#x6D41;&#x7A0B;&#x3002;</p>
</blockquote>
<h4 id="angular&#x7684;git-commit&#x5B9E;&#x8DF5;"><a name="angular&#x7684;git-commit&#x5B9E;&#x8DF5;" class="anchor-navigation-ex-anchor" href="#angular&#x7684;git-commit&#x5B9E;&#x8DF5;"><i class="fa fa-link" aria-hidden="true"></i></a>Angular&#x7684;git commit&#x5B9E;&#x8DF5;</h4>
<p>Angular&#x5B9A;&#x4E49;&#x7684;commit&#x57FA;&#x672C;&#x683C;&#x5F0F;&#x5982;&#x4E0B;:</p>
<pre><code class="lang-markdown"><span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">type</span>&gt;</span></span>(<span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">scope</span>&gt;</span></span>): <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">subject</span>&gt;</span></span>
<span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">BLANK</span> <span class="hljs-attr">LINE</span>&gt;</span></span>
<span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span></span>
<span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">BLANK</span> <span class="hljs-attr">LINE</span>&gt;</span></span>
<span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">footer</span>&gt;</span></span>
</code></pre>
<blockquote>
<p>&#x9664;&#x4E86;&#x7B2C;&#x4E00;&#x884C;&#x7684;Header&#x90E8;&#x5206;&#x5FC5;&#x586B;&#x5916;&#xFF0C;&#x5176;&#x4F59;&#x5747;&#x53EF;&#x9009;&#x3002;&#x6CE8;&#x610F;Header, Body, Footer&#x4E2D;&#x95F4;&#x6709;&#x7A7A;&#x767D;&#x884C;&#x5206;&#x5272;&#x3002;</p>
</blockquote>
<p><img src="https://upload-images.jianshu.io/upload_images/4228468-c18955beb03163df.png?imageMogr2/auto-orient/strip|imageView2/2/format/webp" alt="&#x6D41;&#x7A0B;&#x56FE;"></p>
<p>Header&#x90E8;&#x5206;&#x53EA;&#x6709;&#x4E00;&#x884C;&#xFF0C;&#x5305;&#x62EC;&#x4E09;&#x4E2A;&#x5B57;&#x6BB5;&#xFF1A;<strong><code>type</code>&#xFF08;&#x5FC5;&#x9700;&#xFF09;&#x3001;<code>scope</code>&#xFF08;&#x53EF;&#x9009;&#xFF09;&#x548C;<code>subject</code>&#xFF08;&#x5FC5;&#x9700;&#xFF09;</strong>&#x3002;</p>
<p><strong><code>type</code>&#x7528;&#x4E8E;&#x8BF4;&#x660E; commit &#x7684;&#x7C7B;&#x522B;&#xFF0C;&#x53EA;&#x5141;&#x8BB8;&#x4F7F;&#x7528;&#x4E0B;&#x9762;7&#x4E2A;&#x6807;&#x8BC6;:</strong></p>
<ul>
<li><code>feat</code>&#xFF1A;&#x65B0;&#x529F;&#x80FD;&#xFF08;feature&#xFF09;</li>
<li><code>fix</code>&#xFF1A;&#x4FEE;&#x8865;bug</li>
<li><code>docs</code>&#xFF1A;&#x6587;&#x6863;&#xFF08;documentation&#xFF09;</li>
<li><code>style</code>&#xFF1A; &#x683C;&#x5F0F;&#xFF08;&#x4E0D;&#x5F71;&#x54CD;&#x4EE3;&#x7801;&#x8FD0;&#x884C;&#x7684;&#x53D8;&#x52A8;&#xFF09;</li>
<li><code>refactor</code>&#xFF1A;&#x91CD;&#x6784;&#xFF08;&#x5373;&#x4E0D;&#x662F;&#x65B0;&#x589E;&#x529F;&#x80FD;&#xFF0C;&#x4E5F;&#x4E0D;&#x662F;&#x4FEE;&#x6539;bug&#x7684;&#x4EE3;&#x7801;&#x53D8;&#x52A8;&#xFF09;</li>
<li><code>test</code>&#xFF1A;&#x589E;&#x52A0;&#x6D4B;&#x8BD5;</li>
<li><code>chore</code>&#xFF1A;&#x6784;&#x5EFA;&#x8FC7;&#x7A0B;&#x6216;&#x8F85;&#x52A9;&#x5DE5;&#x5177;&#x7684;&#x53D8;&#x52A8;</li>
</ul>
<p>&#x901A;&#x5E38;<code>feat</code>&#x548C;<code>fix</code>&#x4F1A;&#x88AB;&#x653E;&#x5165;changelog&#x4E2D;&#xFF0C;&#x5176;&#x4ED6;(<code>docs</code>&#x3001;<code>chore</code>&#x3001;<code>style</code>&#x3001;<code>refactor</code>&#x3001;<code>test</code>)&#x901A;&#x5E38;&#x4E0D;&#x4F1A;&#x653E;&#x5165;<strong>changelog</strong>&#x4E2D;&#x3002;</p>
<p><strong><code>scope</code>&#x7528;&#x4E8E;&#x8BF4;&#x660E; commit &#x5F71;&#x54CD;&#x7684;&#x8303;&#x56F4;&#xFF0C;&#x53EF;&#x9009;&#x503C;&#x3002;&#x901A;&#x5E38;&#x662F;&#x6587;&#x4EF6;&#x3001;&#x8DEF;&#x5F84;&#x3001;&#x529F;&#x80FD;&#x7B49;</strong></p>
<p><strong><code>subject</code>&#x662F; commit &#x76EE;&#x7684;&#x7684;&#x7B80;&#x77ED;&#x63CF;&#x8FF0;&#xFF0C;&#x4E0D;&#x8D85;&#x8FC7;50&#x4E2A;&#x5B57;&#x7B26;&#x3002;&#x5982;&#x7528;&#x82F1;&#x8BED;&#x8868;&#x8FF0;:</strong></p>
<ul>
<li>&#x4EE5;&#x52A8;&#x8BCD;&#x5F00;&#x5934;&#xFF0C;&#x4F7F;&#x7528;&#x7B2C;&#x4E00;&#x4EBA;&#x79F0;&#x73B0;&#x5728;&#x65F6;&#xFF0C;&#x6BD4;&#x5982;<code>change</code>&#xFF0C;&#x800C;&#x4E0D;&#x662F;<code>changed</code>&#x6216;<code>changes</code></li>
<li>&#x7B2C;&#x4E00;&#x4E2A;&#x5B57;&#x6BCD;&#x5C0F;&#x5199;</li>
<li>&#x7ED3;&#x5C3E;&#x4E0D;&#x52A0;&#x53E5;&#x53F7;&#xFF08;<code>.</code>&#xFF09;</li>
</ul>
<h4 id="&#x81EA;&#x52A8;&#x5316;&#x5DE5;&#x5177;&#x5904;&#x7406;git-commit"><a name="&#x81EA;&#x52A8;&#x5316;&#x5DE5;&#x5177;&#x5904;&#x7406;git-commit" class="anchor-navigation-ex-anchor" href="#&#x81EA;&#x52A8;&#x5316;&#x5DE5;&#x5177;&#x5904;&#x7406;git-commit"><i class="fa fa-link" aria-hidden="true"></i></a>&#x81EA;&#x52A8;&#x5316;&#x5DE5;&#x5177;&#x5904;&#x7406;git commit</h4>
<blockquote>
<p>commitizen&#x5DE5;&#x5177;&#xFF0C;&#x901A;&#x7528;&#x7684;&#x81EA;&#x52A8;&#x5316;git commit&#x6846;&#x67B6;</p>
</blockquote>
<h5 id="1&#xFF1A;nodejs&#x9879;&#x76EE;"><a name="1&#xFF1A;nodejs&#x9879;&#x76EE;" class="anchor-navigation-ex-anchor" href="#1&#xFF1A;nodejs&#x9879;&#x76EE;"><i class="fa fa-link" aria-hidden="true"></i></a>1&#xFF1A;NodeJS&#x9879;&#x76EE;</h5>
<pre><code> # &#x5C06;commitizen&#x547D;&#x4EE4;&#x884C;&#x5B89;&#x88C5;&#x5230;&#x5168;&#x5C40;(&#x4E5F;&#x53EF;&#x4EE5;&#x7528;npx&#x66FF;&#x4EE3;&#xFF0C;&#x6216;&#x5B89;&#x88C5;&#x5230;&#x9879;&#x76EE;&#x7684;Dev&#x4F9D;&#x8D56;)
npm install commitizen -g

# &#x4F7F;&#x7528;commitizen&#x547D;&#x4EE4;&#x521D;&#x59CB;&#x5316;&#x5F53;&#x524D;&#x5DE5;&#x7A0B;&#x4E3A;commitizen&#x53CB;&#x597D;&#x7684;&#x5DE5;&#x7A0B;
commitizen init cz-conventional-changelog --save-dev
</code></pre><p>&#x6267;&#x884C;&#x5B8C;&#x6BD5;&#x540E;&#x53EF;&#x4EE5;&#x53D1;&#x73B0;&#x5728;<code>package.json</code>&#x7684;<code>devDependencies</code>&#x914D;&#x7F6E;&#x591A;&#x4E86;<code>cz-conventional-changelog</code>&#x4F9D;&#x8D56;&#xFF0C;&#x540C;&#x65F6;&#xFF0C;&#x4E5F;&#x589E;&#x52A0;&#x4E86;&#x4EE5;&#x4E0B;&#x914D;&#x7F6E;&#x6BB5;:</p>
<pre><code class="lang-json">  <span class="hljs-string">&quot;config&quot;</span>: {
    <span class="hljs-string">&quot;commitizen&quot;</span>: {
      <span class="hljs-string">&quot;path&quot;</span>: <span class="hljs-string">&quot;./node_modules/cz-conventional-changelog&quot;</span>
    }
  }
</code></pre>
<p>&#x6B64;&#x65F6;<code>git cz</code>&#x5C06;&#x51FA;&#x73B0;&#x7C7B;&#x4F3C;&#x4E8E;&#x4E0B;&#x9762;&#x7684;&#x4EA4;&#x4E92;&#x5F0F;&#x7EC8;&#x7AEF;:</p>
<pre><code class="lang-npm">cz-cli@3.1.1, cz-conventional-changelog@2.1.0


Line 1 will be cropped at 100 characters. All other lines will be wrapped after 100 characters.

? Select the type of change that you&apos;re committing: (Use arrow keys)
&#x276F; feat:     A new feature
  fix:      A bug fix
  docs:     Documentation only changes
  style:    Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  refactor: A code change that neither fixes a bug nor adds a feature
  perf:     A code change that improves performance
  test:     Adding missing tests or correcting existing tests
(Move up and down to reveal more choices)
</code></pre>
<p>&#x4EE5;&#x540E;&#xFF0C;&#x53EA;&#x8981;&#x662F;&#x9700;&#x8981;<code>git commit</code>&#x7684;&#x5730;&#x65B9;&#xFF0C;&#x901A;&#x901A;&#x66FF;&#x6362;&#x4E3A;<code>git cz</code>&#x6216;<code>git-cz</code>&#x5373;&#x53EF;&#x8FD9;&#x6837;&#x4EA4;&#x4E92;&#x5F0F;&#x7684;&#x8F93;&#x5165;&#x7B26;&#x5408;Angular commit&#x89C4;&#x8303;&#x7684;git log&#x4E86;&#x3002;&#x5176;&#x4F59;commit&#x7684;&#x53C2;&#x6570;&#x4E5F;&#x517C;&#x5BB9;&#xFF0C;&#x6BD4;&#x5982;<code>-a</code>, <code>--amend</code>&#x7B49;&#x7B49;&#x3002;</p>
<p><strong>&#x81EA;&#x52A8;&#x68C0;&#x6D4B;commit&#x662F;&#x5426;&#x7B26;&#x5408;&#x89C4;&#x8303;</strong></p>
<blockquote>
<p>&#x8003;&#x8651;&#x5728;<code>git commit</code>&#x7684;<code>hook</code>&#x4E2D;&#x52A0;&#x5165;<a href="https://links.jianshu.com/go?to=https%3A%2F%2Fgithub.com%2Fconventional-changelog%2Fcommitlint" target="_blank">commitlint</a>&#x68C0;&#x6D4B;&#xFF0C;&#x4E0D;&#x7B26;&#x5408;commit&#x89C4;&#x8303;&#x7684;&#x63D0;&#x4EA4;&#x5728;&#x672C;&#x5730;&#x5C31;&#x65E0;&#x6CD5;&#x63D0;&#x4EA4;&#x8FDB;&#x53BB;</p>
</blockquote>
<p>&#x5728;&#x9879;&#x76EE;&#x4F9D;&#x8D56;&#x4E2D;&#x6DFB;&#x52A0;<code>husky</code>, <code>commitlint</code>&#x76F8;&#x5173;&#x4F9D;&#x8D56;:</p>
<pre><code>npm i -D husky @commitlint/config-conventional @commitlint/cli
</code></pre><p>&#x7136;&#x540E;&#x5728;<code>package.json</code>&#x914D;&#x7F6E;&#x4E2D;&#x6DFB;&#x52A0;<code>husky</code>&#x7684;git hook&#x914D;&#x7F6E;:</p>
<pre><code>{
  &quot;husky&quot;: {
    &quot;hooks&quot;: {
      &quot;commit-msg&quot;: &quot;commitlint -x @commitlint/config-conventional -E HUSKY_GIT_PARAMS&quot;
    }
  }
}
</code></pre><blockquote>
<p>&#x5DE7;&#x5999;&#x5408;&#x7406;&#x5229;&#x7528;<strong>husky</strong>&#x7684;<strong>hook</strong>&#x529F;&#x80FD;&#x53EF;&#x4EE5;&#x5927;&#x5927;&#x89C4;&#x8303;&#x5316;&#x5F00;&#x53D1;</p>
</blockquote>
<h5 id="&#x975E;nodejs&#x9879;&#x76EE;"><a name="&#x975E;nodejs&#x9879;&#x76EE;" class="anchor-navigation-ex-anchor" href="#&#x975E;nodejs&#x9879;&#x76EE;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x975E;NodeJS&#x9879;&#x76EE;</h5>
<p>&#x5BF9;&#x4E8E;&#x975E;NodeJS&#x9879;&#x76EE;&#xFF0C;&#x53EF;&#x4EE5;&#x5C06;<code>commitizen</code>, <code>commitlint</code>&#x7B49;&#x8FD9;&#x4E9B;&#x5DE5;&#x5177;&#x5B89;&#x88C5;&#x4E3A;&#x5168;&#x5C40;&#x7684;&#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;&#x5206;&#x5F00;&#x4F7F;&#x7528;&#x3002;</p>
<p>&#x5B89;&#x88C5;<code>commitizen</code>&#x4E3A;&#x5168;&#x5C40;:</p>
<pre><code>npm install -g commitizen cz-conventional-changelog

# &#x6CE8;: powershell&#x4F7F;&#x7528;&#x4E0B;&#x9762;&#x547D;&#x4EE4;&#x4EA7;&#x751F;&#x7684;&#x6587;&#x4EF6;&#x662F;UTF16&#x683C;&#x5F0F;&#xFF0C;&#x9700;&#x8981;&#x624B;&#x5DE5;&#x8F6C;&#x4E3A;UTF8&#x4FDD;&#x5B58;
echo &apos;{ &quot;path&quot;: &quot;cz-conventional-changelog&quot; }&apos; &gt; ~/.czrc
</code></pre><p>&#x7136;&#x540E;&#x50CF;<code>git commit</code>&#x90A3;&#x6837;&#x76F4;&#x63A5;&#x4F7F;&#x7528;<code>git cz</code>&#x6216;<code>git-cz</code>&#x5C31;&#x53EF;&#x4EE5;&#x5F39;&#x51FA;&#x4EA4;&#x4E92;&#x5F0F;&#x63D0;&#x793A;&#x4E86;:</p>
<pre><code class="lang-js"> git add new.md
 git cz
cz-cli@3.1.1, cz-conventional-changelog@2.1.0


Line 1 will be cropped at 100 characters. All other lines will be wrapped after 100 characters.

? Select the type of change that you&apos;re committing: (Use arrow keys)
&#x276F; feat:     A new feature
  fix:      A bug fix
  docs:     Documentation only changes
  style:    Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  refactor: A code change that neither fixes a bug nor adds a feature
  perf:     A code change that improves performance
  test:     Adding missing tests or correcting existing tests
(Move up and down to reveal more choices)
</code></pre>
<p><strong>&#x68C0;&#x6D4B;commit&#x662F;&#x5426;&#x7B26;&#x5408;&#x89C4;&#x8303;</strong></p>
<blockquote>
<p>&#x540C;&#x6837;&#x53EF;&#x4EE5;&#x5C06;<code>commitlint</code>&#x5B89;&#x88C5;&#x5230;&#x5168;&#x5C40;&#xFF0C;&#x4EE5;&#x547D;&#x4EE4;&#x884C;&#x65B9;&#x5F0F;&#x5728;&#x672C;&#x5730;&#x624B;&#x5DE5;&#x68C0;&#x6D4B;&#x8FD0;&#x884C;&#x3002;</p>
</blockquote>
<pre><code>npm install -g @commitlint/cli @commitlint/config-conventional
</code></pre><p>&#x6BCF;&#x6B21;commit&#x4E4B;&#x540E;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4E0B;&#x8FF0;&#x547D;&#x4EE4;&#x68C0;&#x6D4B;:</p>
<pre><code class="lang-js">commitlint -x <span class="hljs-string">&apos;@commitlint/config-conventional&apos;</span> -e
<span class="hljs-comment">//-e/--edit&#x53C2;&#x6570;&#x4EE3;&#x8868;&#x8BFB;&#x53D6;git commit&#x6700;&#x540E;&#x4E00;&#x6761;&#x8BB0;&#x5F55;</span>

commitlint -x <span class="hljs-string">&apos;@commitlint/config-conventional&apos;</span> -f HEAD~<span class="hljs-number">1</span>
<span class="hljs-comment">// -f/--from&#x53C2;&#x6570;&#x53EF;&#x4EE5;&#x6307;&#x660E;&#x4ECE;&#x54EA;&#x4E00;&#x6761;commit&#x8BB0;&#x5F55;&#x5F00;&#x59CB;&#x68C0;&#x6D4B;&#xFF0C;&#x8FD8;&#x53EF;&#x4EE5;&#x914D;&#x5408;-t/--to&#x53C2;&#x6570;&#x68C0;&#x6D4B;&#x4E00;&#x4E2A;commit&#x533A;&#x95F4;&#x6BB5;&#x3002;</span>
</code></pre>
<h3 id="&#x7248;&#x672C;&#x53D1;&#x5E03;"><a name="&#x7248;&#x672C;&#x53D1;&#x5E03;" class="anchor-navigation-ex-anchor" href="#&#x7248;&#x672C;&#x53D1;&#x5E03;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1.1. &#x7248;&#x672C;&#x53D1;&#x5E03;</h3>
<p>&#x89C4;&#x8303;&#x5316;commit&#x8BB0;&#x5F55;&#x7684;&#x4F5C;&#x7528;&#x5C31;&#x662F;&#x4E3A;&#x4E86;&#x65B9;&#x4FBF;&#x6211;&#x4EEC;&#x77E5;&#x9053;&#x6BCF;&#x6B21;&#x53D1;&#x5E03;&#x4E4B;&#x540E;&#x5230;&#x5E95;&#x6539;&#x4E86;&#x4EC0;&#x4E48;&#x5185;&#x5BB9;&#x3002;&#x5229;&#x7528;<a href="https://links.jianshu.com/go?to=https%3A%2F%2Fgithub.com%2Fconventional-changelog%2Fconventional-changelog" target="_blank">conventional-changelog</a>&#x8FD9;&#x4E2A;&#x5DE5;&#x5177;&#x53EF;&#x4EE5;&#x5F88;&#x65B9;&#x4FBF;&#x7684;&#x5E2E;&#x6211;&#x4EEC;&#x4EA7;&#x751F;<strong>changelog</strong>&#x3002;</p>
<pre><code>npm install -g conventional-changelog-cli
</code></pre><p>&#x5982;&#x679C;&#x4E4B;&#x524D;&#x6BCF;&#x6B21;commit&#x90FD;&#x4F7F;&#x7528;&#x89C4;&#x8303;&#x5316;&#x7684;commit&#x63D0;&#x4EA4;&#xFF0C;&#x90A3;&#x4E48;&#x4F7F;&#x7528;:</p>
<pre><code>conventional-changelog -p angular
</code></pre><pre><code>conventional-changelog -i CHANGELOG.md -s -p angular
</code></pre><blockquote>
<p>&#x7EC8;&#x7AEF;&#x4E2D;&#x770B;&#x5230;&#x7684;&#x5185;&#x5BB9;&#x5C06;&#x8F93;&#x51FA;&#x5230;<code>CHANGELOG.md</code>&#x6587;&#x4EF6;&#x3002;&#x518D;&#x6B21;&#x4F7F;&#x7528;&#x4E0A;&#x8FF0;&#x547D;&#x4EE4;&#x53EF;&#x4EE5;&#x5C06;&#x65B0;&#x7684;change log&#x8FFD;&#x52A0;&#x5230;&#x6587;&#x4EF6;&#x4E2D;&#x3002;&#x53EF;&#x4EE5;&#x8FFD;&#x52A0;<code>-r 0</code>&#x53C2;&#x6570;&#x4EE3;&#x8868;&#x5C06;commit&#x8BB0;&#x5F55;&#x4ECE;&#x5934;&#x81F3;&#x5C3E;&#x5168;&#x90E8;&#x751F;&#x6210;changelog&#x3002;</p>
</blockquote>
<h4 id="&#x66F4;&#x81EA;&#x52A8;&#x5316;&#x7684;&#x53D1;&#x5E03;&#x65B9;&#x5F0F;standard-version"><a name="&#x66F4;&#x81EA;&#x52A8;&#x5316;&#x7684;&#x53D1;&#x5E03;&#x65B9;&#x5F0F;standard-version" class="anchor-navigation-ex-anchor" href="#&#x66F4;&#x81EA;&#x52A8;&#x5316;&#x7684;&#x53D1;&#x5E03;&#x65B9;&#x5F0F;standard-version"><i class="fa fa-link" aria-hidden="true"></i></a>&#x66F4;&#x81EA;&#x52A8;&#x5316;&#x7684;&#x53D1;&#x5E03;&#x65B9;&#x5F0F;standard-version</h4>
<p>&#x5728;<a href="https://links.jianshu.com/go?to=https%3A%2F%2Fgithub.com%2Fconventional-changelog%2Fconventional-changelog" target="_blank">conventional-changelog</a>&#x7684;&#x5B98;&#x65B9;&#x6587;&#x6863;&#x4E2D;&#xFF0C;&#x5B98;&#x65B9;&#x66F4;&#x9F13;&#x52B1;&#x4F7F;&#x7528;&#x66F4;&#x4E0A;&#x5C42;&#x7684;&#x5DE5;&#x5177;<a href="https://links.jianshu.com/go?to=https%3A%2F%2Fgithub.com%2Fconventional-changelog%2Fstandard-version" target="_blank">standard-version</a>&#x6765;&#x4EA7;&#x751F;<code>CHANGELOG.md</code>&#x3002;<code>conventional-changelog</code>&#x53EF;&#x4EE5;&#x5E2E;&#x52A9;&#x6211;&#x4EEC;&#x5FEB;&#x901F;&#x68C0;&#x67E5;&#x8981;&#x751F;&#x6210;&#x7684;CHANGELOG.md&#x7684;&#x683C;&#x5F0F;&#x662F;&#x5426;&#x7B26;&#x5408;&#x671F;&#x671B;&#xFF0C;&#x800C;<code>standard-version</code>&#x53EF;&#x4EE5;&#x81EA;&#x52A8;&#x5E2E;&#x52A9;&#x6211;&#x4EEC;&#x505A;&#x4EE5;&#x4E0B;&#x51E0;&#x4EF6;&#x4E8B;&#x60C5;:</p>
<ul>
<li>&#x5347;&#x7EA7;&#x5143;&#x6570;&#x636E;&#x4E2D;&#x7684;&#x7248;&#x672C;&#x53F7;(&#x5982;<code>package.json</code>,<code>composer.json</code>&#x7B49;&#x7B49;)</li>
<li>&#x4F7F;&#x7528;<a href="https://links.jianshu.com/go?to=https%3A%2F%2Fgithub.com%2Fconventional-changelog%2Fconventional-changelog" target="_blank">conventional-changelog</a>&#x66F4;&#x65B0; <em>CHANGELOG.md</em></li>
<li>&#x63D0;&#x4EA4;<code>package.json</code> (&#x5982;&#x679C;&#x6709;) &#x548C; <code>CHANGELOG.md</code></li>
<li>&#x7ED9;&#x65B0;&#x7248;&#x672C;&#x6253;&#x4E00;&#x4E2A;tag</li>
</ul>
<p>&#x9996;&#x5148;&#x5B89;&#x88C5;standard-version&#x5230;&#x5168;&#x5C40;&#x547D;&#x4EE4;&#x884C;:</p>
<pre><code>npm i -g standard-version
</code></pre><p>&#x6267;&#x884C;&#x4E0B;<code>standard-version</code>&#xFF0C;&#x5C06;&#x770B;&#x5230;&#x7C7B;&#x4F3C;&#x4E8E;&#x4E0B;&#x9762;&#x8FD9;&#x6837;&#x7684;&#x8F93;&#x51FA;:</p>
<pre><code> standard-version
&#x2714; created CHANGELOG.md
&#x2714; outputting changes to CHANGELOG.md
&#x2714; committing CHANGELOG.md
&#x2714; tagging release v2.0.0
&#x2139; Run `git push --follow-tags origin master &amp;&amp; npm publish` to publish
</code></pre><h3 id="standard-version&#x4E00;&#x4E9B;&#x57FA;&#x672C;&#x7528;&#x6CD5;"><a name="standard-version&#x4E00;&#x4E9B;&#x57FA;&#x672C;&#x7528;&#x6CD5;" class="anchor-navigation-ex-anchor" href="#standard-version&#x4E00;&#x4E9B;&#x57FA;&#x672C;&#x7528;&#x6CD5;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1.2. standard-version&#x4E00;&#x4E9B;&#x57FA;&#x672C;&#x7528;&#x6CD5;</h3>
<p>&#x76F4;&#x63A5;&#x8DDF;&#x7A7A;&#x53C2;&#x8FD0;&#x884C;&#x7684;&#x884C;&#x4E3A;&#x6211;&#x4EEC;&#x5DF2;&#x7ECF;&#x770B;&#x5230;&#x4E86;&#xFF0C;&#x4E00;&#x4E9B;&#x57FA;&#x672C;&#x53C2;&#x6570;&#x4ECB;&#x7ECD;&#x4E0B;:</p>
<ul>
<li><code>--dry-run</code>: &#x5F3A;&#x70C8;&#x5EFA;&#x8BAE;&#x6B63;&#x5F0F;&#x8FD0;&#x884C;&#x4E4B;&#x524D;&#x5148;&#x52A0;&#x8FD9;&#x4E2A;&#x53C2;&#x6570;&#xFF0C;&#x6253;&#x5370;&#x4E00;&#x4E0B;&#x8981;&#x505A;&#x7684;&#x4E8B;&#x60C5;&#xFF0C;&#x5E76;&#x4E0D;&#x771F;&#x6B63;&#x6267;&#x884C;</li>
<li><code>--first-release</code>/<code>-f</code>: &#x9996;&#x6B21;&#x53D1;&#x5E03;&#xFF0C;&#x52A0;&#x4E0A;&#x8FD9;&#x4E2A;&#x53C2;&#x6570;&#x4EE3;&#x8868;&#x4E0D;&#x4F1A;&#x5347;&#x7EA7;&#x7248;&#x672C;&#x53F7;&#x3002;&#x4EC5;&#x7B2C;&#x4E00;&#x6B21;&#x4F7F;&#x7528;&#x9700;&#x8981;</li>
<li><code>--commit-all</code>/<code>-a</code>: &#x7B49;&#x6548;&#x4E8E;<code>git commit -a</code>&#xFF0C;&#x5EFA;&#x8BAE;&#x81EA;&#x5DF1;&#x51B3;&#x5B9A;&#x8981;&#x63D0;&#x4EA4;&#x54EA;&#x4E9B;&#x6587;&#x4EF6;&#xFF0C;&#x90FD;<code>add</code>&#x6CA1;&#x95EE;&#x9898;&#x4E4B;&#x540E;&#x518D;&#x6267;&#x884C;<code>standard-version</code></li>
<li><code>--release-as</code>/<code>-r</code>: &#x624B;&#x5DE5;&#x6307;&#x5B9A;&#x4E0B;&#x4E00;&#x4E2A;&#x7248;&#x672C;&#x53F7;(&#x683C;&#x5F0F;<code>`)&#x3002;&#x8FD9;&#x4E2A;&#x53C2;&#x6570;&#x53EF;&#x80FD;&#x4F1A;&#x7ECF;&#x5E38;&#x4F7F;&#x7528;&#x3002;</code>standard-version<code>&#x9ED8;&#x8BA4;&#x89C4;&#x5219;&#x662F;&#x4ECE;</code>major<code>/</code>minor<code>/</code>patch<code>&#x4E2D;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x975E;&#x96F6;&#x7684;&#x5B57;&#x6BB5;&#x5F00;&#x59CB;&#x7D2F;&#x52A0;&#xFF0C;&#x5982;</code>v1.0.0 -&gt; v2.0.0<code>,</code>v1.1.0 -&gt; v1.2.0<code>,</code>v1.1.1 -&gt; v1.1.2`&#xFF0C;&#x6307;&#x5B9A;&#x8FD9;&#x4E2A;&#x53C2;&#x6570;&#x53EF;&#x4EE5;&#x89C4;&#x907F;&#x8FD9;&#x4E2A;&#x89C4;&#x5219;&#xFF0C;&#x4ECE;&#x81EA;&#x5B9A;&#x4E49;&#x7684;&#x7248;&#x672C;&#x53F7;&#x5F00;&#x59CB;&#x91CD;&#x65B0;&#x6309;&#x4E0A;&#x8FF0;&#x89C4;&#x5219;&#x5347;&#x7EA7;</li>
<li><code>--prerelease</code>/<code>-p</code>: &#x9884;&#x53D1;&#x5E03;&#x7248;&#x672C;&#xFF0C;&#x9ED8;&#x8BA4;&#x4EA7;&#x751F;&#x7684;tag&#x50CF;&#x8FD9;&#x6837;: <code>v1.0.1-0</code>&#x3002;&#x53EF;&#x4EE5;&#x8DDF;&#x4E0A;&#x4E00;&#x4E2A;&#x53EF;&#x9009;&#x7684;tag id&#x3002;&#x5982;<code>-p alpha</code>&#xFF0C;&#x5C06;&#x4EA7;&#x751F;&#x8FD9;&#x6837;&#x7684;tag: <code>v1.0.1-alpha.0</code> </li>
</ul>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; zhengyuliang all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x7F16;&#x5199;&#x65F6;&#x95F4;&#xFF1A;
2020-02-28 10:51:28
</span></footer></body></html>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="智能照明项目说明.html" class="navigation navigation-prev " aria-label="Previous page: 智能照明项目说明">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../tutorial/Esmap地图详解.html" class="navigation navigation-next " aria-label="Next page: Esmap地图详解">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"规范化Git的提交信息","level":"6.4","depth":1,"next":{"title":"Esmap地图详解","level":"7.1","depth":1,"path":"tutorial/Esmap地图详解.md","ref":"tutorial/Esmap地图详解.md","articles":[]},"previous":{"title":"智能照明项目说明","level":"6.3","depth":1,"path":"technology/智能照明项目说明.md","ref":"technology/智能照明项目说明.md","articles":[]},"dir":"ltr"},"config":{"plugins":["sectionx","splitter","tbfed-pagefooter","toggle-chapters","theme-comscore","-lunr","-search","search-plus","donate","anchor-navigation-ex","expandable-chapters","chapter-fold","expandable-chapters-small","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy zhengyuliang","modify_label":"该文件编写时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"chapter-fold":{},"pluginsConfig":{"anchor-navigation-ex":{"showLevel":false,"showGoTop":true,"isRewritePageTitle":true,"isShowTocTitleIcon":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"}},"livereload":{},"splitter":{},"donate":{"title":"","button":"赏","wechat":"https://gitee.com/htzyl/img_bed/raw/master/pay/weixin-min.jpg","alipay":"https://gitee.com/htzyl/img_bed/raw/master/pay/alipay-min.jpg","wechatText":"微信打赏","alipayText":"支付宝打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"sectionx":{"tag":"b"},"highlight":{},"anchor-navigation-ex":{"showLevel":true,"associatedWithSummary":true,"mode":"float","showGoTop":true,"printLog":false,"multipleH1":true,"float":{"floatIcon":"fa fa-navicon","showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""},"pageTop":{"showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""}},"theme-comscore":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"zhengyuliang","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"记录技术文档内容","language":"zh-hans","gitbook":">=3.0.0","description":"记录Gitbook的配置和一些插件的使用","theme-default":{"showLevel":true}},"file":{"path":"technology/规范化git的提交信息.md","mtime":"2020-02-28T02:51:28.364Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-01-06T09:44:01.178Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sectionx/sectionx.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

